package com.skt.common_hr.common.approval
{
	import com.skt.common_hr.common.memberselector.MemberVO;
	
	import flash.events.Event;

	public class AppLineEvent extends Event
	{
		public static const SELECTED_MEMBER:String 	= "selectedMember";
		public static const SELECTED_ORG:String 	= "selectOrg";
		
		public var member:MemberVO;
		public var orgCode:String;

		public function AppLineEvent(type:String, param:*=null)
		{
			super(type, false, false);
			if(type==SELECTED_MEMBER) { 
				this.member = param;
			}
			else {
				this.orgCode = param;
			}
		}
		
		override public function clone():Event
		{
			if(type==SELECTED_MEMBER) {
				return new AppLineEvent(type, member);	
			}
			else if(type==SELECTED_ORG) {
				return new AppLineEvent(type, orgCode);
			}
			else {
				return new AppLineEvent(type);
			}
		}
	}
}